<template>
  <div id="app">
    <router-view v-if="isRouterAlive"></router-view>
  </div>
</template>

<script>
import scss from './styles/styleVersion.scss'
import { initTheme } from './utils/theme'
export default {
  name: 'app',
  provide() {
    return {
      reload: this.reload
    }
  },
  mounted() {
  },
  data() {
    return {
      isRouterAlive: true
    }
  },
  created() {
  },
  methods: {
    reload() {
      this.isRouterAlive = false
      this.$nextTick(function() {
        this.isRouterAlive = true
        // setTimeout(() => {
        //   initTheme()
        // }, 200)
      })
    }
  }
}
</script>
